package cn.icanci.snowstack;

import cn.icanci.snowstack.codediff.Compare;

import java.util.Date;

/**
 * TODO 测试各种数据类型
 * 
 * @author icanci
 * @date Created in 2021/06/28 14:06
 * @version 1.0
 */
@Compare(name = "User")
public class User {
    @Compare(name = "username")
    private String username;
    @Compare(name = "username")
    private String password;
    @Compare(name = "username", type = Compare.Type.DATE)
    private Date   date;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", date=").append(date);
        sb.append('}');
        return sb.toString();
    }
}
